//
//  InformationViewController.m
//  DianNaoWang
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "ButtonImageView.h"
#import "Header.h"
@implementation ButtonImageView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    _button = [UIButton buttonWithType:UIButtonTypeSystem];
    _button.frame = CGRectMake(0, 0, 40 * FitWidth, 20 * FitHeight);
    [_button setTitleColor:NavigationBarBackgroundColor forState:UIControlStateSelected];
    [_button setTitleColor:contenttextColor forState:UIControlStateNormal];
    _button.titleLabel.font = [UIFont systemFontOfSize:16];
    //_button.layer.borderWidth = 2.0;

    [self addSubview:_button];
    
    _imageView = [[UIImageView alloc]initWithFrame:CGRectMake(_button.frame.origin.x + _button.frame.size.width, _button.frame.origin.y + 5 * FitHeight, _button.frame.size.width / 2, _button.frame.size.height / 2)];
    //_imageView.backgroundColor = [UIColor redColor];
    [self addSubview:_imageView];
    
    
    
    return self;
}










/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
